<HTML><HEAD><TITLE>session_close(++Session)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(dbi)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>session_close(++Session)</H1>
close a session for the DBMS
<DL>
<DT><EM>Session</EM></DT>
<DD>A session handle
</DD>
</DL>
<H2>Description</H2>
</P><P>
 This closes a session explicitly, disconnecting from the DBMS server. It 
 takes  effect immediately. Any uncommitted transactional updates are rolled 
 back. Some resources associated with the session are also freed.
</P><P>
 Cursors for this session are not closed by the closing of the session,
 but they will no longer be able to access the database, but will still use
 some resources. It is recommended that cursors be closed before closing
 the session. All resources associated with a session are only freed when
 both the session and all the cursors are closed. 

<H3>Exceptions</H3>
<DL>
<DT><EM>(5) type error </EM>
<DD>Session is not a session handle
</DL>
<H2>See Also</H2>
<A HREF="../../lib/dbi/session_start-4.html">session_start / 4</A>, <A HREF="../../lib/dbi/cursor_close-1.html">cursor_close / 1</A>
</BODY></HTML>
